package com.sd365.gateway.authentication.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author hantianbing
 * @version 1.0
 * @date 2022-12-29
 */
@Api(tags = "认证管理", value = "/auth")
@RequestMapping("/auth")
@CrossOrigin
public interface AuthenticationApi {

    /***
     * @Description 认证登录的用户， 如果成功， 返回token
     * @param code  用户的code
     * @param password 用户的密码
     * @param account  用户的租户
     * @return java.lang.String
     * @Date 2022/12/29 15:20
     * @Author hantianbing
     **/
    @ApiOperation(tags = "获取token", value = "/token")
    @GetMapping("token")
    @CrossOrigin
    String getToken(@RequestParam("code") String code,
                    @RequestParam("password") String password,
                    @RequestParam("account") String account);
}
